/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ua.i.kotionokyurievna.jewelryweb.controllers;

import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import ua.i.kotionokyurievna.jewelryweb.entities.OrderC;
import ua.i.kotionokyurievna.jewelryweb.entities.Person;

/**
 *
 * @author kotionokyurievna
 */
@ManagedBean
@RequestScoped
public class ClientProfileController {
    private Person person;
    /**
     * Creates a new instance of ClientProfileController
     */
    public ClientProfileController() {
    }

    public ClientProfileController(Person person) {
        this.person = person;
    }
    
    public String getClientName(){
        return person.getFirstName();
    }
    
    public String getClientSurname(){
        return person.getLastName();
    }
    
    public String getClientPhone(){
        return person.getTelephone();
    }
    
    public String getClientEmail(){
        return person.getEmail();
    }
    
    public List<OrderC> getClientOrders(){
        List<OrderC> orders = new ArrayList<OrderC>();
        return orders;
    }
    
    
}
